package com.zdy.im;

import com.sixeco.framework.common.constants.GlobalConfigConstants;
import com.sixeco.framework.http.inters.IProjectModule;
import com.sixeco.framework.http.jetty.AbstractJettyAppServer;
import com.zdy.im.conf.ImModuleEnum;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

/**
 * springboot 启动类别
 *
 * @Author 作者 : zdy
 * @CreateDate 创建时间: 2021-02-30
 */
@EnableCaching
@MapperScan(basePackages="com.zdy.im.*.mapper",sqlSessionFactoryRef = "sqlSessionFactory")
@EnableAutoConfiguration
@ComponentScan(basePackages={GlobalConfigConstants.COMPONENT_SCAN_BASE_PACKAGES})
@ComponentScan(basePackages={"com.zdy"})
public class ImAppMain extends AbstractJettyAppServer {
    public static void main(String[] args) {
        jettyStart(ImAppMain.class, args);
    }

    @Override
    protected IProjectModule getServiceName() {
        return ImModuleEnum.IM_SOCKET;
    }


}
